package com.mlingdu.ffmpegaudioplayer.ui;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.SurfaceView;
import android.widget.ImageView;

import com.mlingdu.ffmpegaudioplayer.R;

import butterknife.BindView;
import butterknife.ButterKnife;

/**
 * Created by daimaren on 2018/1/26
 * 975808394@qq.com
 * 在 Android 平台绘制一张图片，使用至少3 种不同的API，ImageView，SurfaceView，自定义View
 */
public class ImageShowActivity extends AppCompatActivity {
	@BindView(R.id.iv_image)
	ImageView ivImage;
	@BindView(R.id.sv_image)
	SurfaceView svImage;

	@Override
	protected void onCreate(@Nullable Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_img_show);
		ButterKnife.bind(this);
		initView();
	}

	private void initView(){
		ivImage.setImageResource(R.drawable.bg_image_show);
		svImage.setBackgroundResource(R.drawable.bg_image_show);
	}
}
